﻿using Middleware.ApiTest.Attributes;
using Middleware.ApiTest.Models;

namespace Middleware.ApiTest.Services.Dtos
{
    public class OrderInfoDto
    {
        /// <summary>
        /// 订单号
        /// </summary>
        [MaskAttribute]
        public string? OrderSn { get; set; }
        /// <summary>
        /// 订单用户Id
        /// </summary>
        public string? UserId { get; set; }
        /// <summary>
        /// 订单金额
        /// </summary>
        [MaskAttribute] //标记需要脱敏的字段
        public decimal? TotalAmout { get; set; }
        /// <summary>
        /// 支付时间
        /// </summary>
        public DateTime? PayTime { get; set; }
        /// <summary>
        /// 支付状态
        /// </summary>
        public int PayStatus { get; set; }
        /// <summary>
        /// 订单价格
        /// </summary>
        public OrderPrice OrderPrice { get; set; }
        /// <summary>
        /// 订单商品
        /// </summary>
        public List<OrderItemsDto> OrderItems { get; set; }
        /// <summary>
        /// 订单收获信息
        /// </summary>
        public ConsigneeInfo ConsigneeInfo { get; set; }

    }
}
